<template>
  <!-- <el-card class="filter-card"> -->
  <div class="container">
    <div class="left">
      <el-button
        :style="{ color: item.color, backgroundColor: item.bgColor }"
        v-for="(item, index) in btnList"
        :key="index"
        @click="btnClick(item)"
        >{{ item.name }}</el-button
      >

      <el-link style="margin-left: 15px" type="primary" v-if="isShowResult"
        >标准匹配结果</el-link
      >
    </div>

    <div class="right">
      <div class="status" v-if="isShowStatus">
        <span style="width:60px">状态：</span>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
      </div>
      <el-input placeholder="请输入产品型号" v-model="productModel">
        <i slot="suffix" class="el-input__icon el-icon-search"></i>
      </el-input>
    </div>
  </div>
  <!-- </el-card> -->
</template>

<script>
export default {
  name: "FilterCenter",
  props: ["btnList", "isShowResult", "isShowStatus"],
  components: {},
  data() {
    return {
      productModel: "",
       options: [{
          value: '1',
          label: '全部'
        }, {
          value: '2',
          label: '待采纳'
        }, {
          value: '3',
          label: '议价中'
        }, {
          value: '4',
          label: '超时未采纳'
        }, {
          value: '5',
          label: '无效报价单'
        }],
        value: ''
    };
  },
  methods: {
    btnClick(item) {
      this.$emit("btnClick", item);
    },
  },
  created() {},
};
</script>
<style lang="scss" scoped>
.container {
  display: flex;
  margin-bottom: 20px;
  .left {
    flex: 1;
  }
  .right {
    // width: 300px;
    display: flex;
    .status{
      display: flex;
      align-items: center;
      margin-right: 20px;
    }
  }
}
</style>
